package com.robotserver.orders.entity;

import java.io.Serializable;

public class VipTokens extends BaseEntity{
    private String openId;
    private String accessToken;
    private Integer expiresTime;

    //下面字段不是数据库字段，是临时字段，方便业务使用
    private Long beginTime;  //查询开始时间
    private Long endTime;    //查询结束时间
    private Integer downTimeType;   // 1：按照订单下单时间查询，4:按照订单更新时间

    @Override
    protected Serializable pkVal() {
        return this.getId();
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public Integer getExpiresTime() {
        return expiresTime;
    }

    public void setExpiresTime(Integer expiresTime) {
        this.expiresTime = expiresTime;
    }

    @Override
    public String toString() {
        return openId;
    }

    public Long getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Long beginTime) {
        this.beginTime = beginTime;
    }

    public Long getEndTime() {
        return endTime;
    }

    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }

    public Integer getDownTimeType() {
        return downTimeType;
    }

    public void setDownTimeType(Integer downTimeType) {
        this.downTimeType = downTimeType;
    }
}